package com.zhang.entity.response;

/**
 * Created with IntelliJ IDEA.
 * User: 张
 * Date: 2024-10-27
 * Time: 15:20
 * Description:
 */
public enum ResultCode {
    SUCCESS(200, "成功"),
    FAILED(500, "失败"),
    UNAUTHORIZED(401, "账号或密码错误");
    private Integer code;
    private String msg;
    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
